; 向内存 0200:0h ~ 0200:3fh 依次传递 0 ~ 3fh
assume cs:code

code segment
    mov ax, 0020h
    mov ds, ax
    mov cx, 40h
    
    mov bx, 00h

    s:
        mov [bx], bl
        inc bx
        loop s

    mov ax, 4c00h
    int 21h
code ends
end